Skip to main content

MySqlDialectProviderBase<TDialect>

Assembly: ServiceStack.OrmLite.MySql.dll
View Source
Declaration
public abstract class MySqlDialectProviderBase<TDialect> : OrmLiteDialectProviderBase<TDialect>, IOrmLiteDialectProvider where TDialect : IOrmLiteDialectProvider

Fields

RowVersionTriggerFormat

View Source
Declaration
public static string RowVersionTriggerFormat

ReservedWords

View Source
Declaration
public static HashSet<string> ReservedWords

Methods

GetLoadChildrenSubSelect<From>(SqlExpression<From>)

View Source
Declaration
public override string GetLoadChildrenSubSelect<From>(SqlExpression<From> expr)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.SqlExpression<T>expr
Type Parameters
  • From

ToPostDropTableStatement(ModelDefinition)

View Source
Declaration
public override string ToPostDropTableStatement(ModelDefinition modelDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.ModelDefinitionmodelDef

ToPostCreateTableStatement(ModelDefinition)

View Source
Declaration
public override string ToPostCreateTableStatement(ModelDefinition modelDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.ModelDefinitionmodelDef

GetQuotedValue(String)

View Source
Declaration
public override string GetQuotedValue(string paramValue)
Returns

System.String

Parameters
TypeName
System.StringparamValue

GetQuotedValue(Object, Type)

View Source
Declaration
public override string GetQuotedValue(object value, Type fieldType)
Returns

System.String

Parameters
TypeName
System.Objectvalue
TypefieldType

GetTableName(String, String)

View Source
Declaration
public override string GetTableName(string table, string schema = null)
Returns

System.String

Parameters
TypeName
System.Stringtable
System.Stringschema

GetTableName(String, String, Boolean)

View Source
Declaration
public override string GetTableName(string table, string schema, bool useStrategy)
Returns

System.String

Parameters
TypeName
System.Stringtable
System.Stringschema
System.BooleanuseStrategy

ShouldQuote(String)

View Source
Declaration
public override bool ShouldQuote(string name)
Returns

System.Boolean

Parameters
TypeName
System.Stringname

GetQuotedName(String)

View Source
Declaration
public override string GetQuotedName(string name)
Returns

System.String

Parameters
TypeName
System.Stringname

GetQuotedTableName(String, String)

View Source
Declaration
public override string GetQuotedTableName(string tableName, string schema = null)
Returns

System.String

Parameters
TypeName
System.StringtableName
System.Stringschema

SqlExpression<T>()

View Source
Declaration
public override SqlExpression<T> SqlExpression<T>()
Returns

ServiceStack.OrmLite.SqlExpression<T>

Type Parameters
  • T

ToTableNamesStatement(String)

View Source
Declaration
public override string ToTableNamesStatement(string schema)
Returns

System.String

Parameters
TypeName
System.Stringschema

ToTableNamesWithRowCountsStatement(Boolean, String)

View Source
Declaration
public override string ToTableNamesWithRowCountsStatement(bool live, string schema)
Returns

System.String

Parameters
TypeName
System.Booleanlive
System.Stringschema

DoesTableExist(IDbCommand, String, String)

View Source
Declaration
public override bool DoesTableExist(IDbCommand dbCmd, string tableName, string schema = null)
Returns

System.Boolean

Parameters
TypeName
IDbCommanddbCmd
System.StringtableName
System.Stringschema

DoesTableExistAsync(IDbCommand, String, String, CancellationToken)

View Source
Declaration
public override async Task<bool> DoesTableExistAsync(IDbCommand dbCmd, string tableName, string schema = null, CancellationToken token = null)
Returns

Task<System.Boolean>

Parameters
TypeName
IDbCommanddbCmd
System.StringtableName
System.Stringschema
CancellationTokentoken

DoesColumnExist(IDbConnection, String, String, String)

View Source
Declaration
public override bool DoesColumnExist(IDbConnection db, string columnName, string tableName, string schema = null)
Returns

System.Boolean

Parameters
TypeName
IDbConnectiondb
System.StringcolumnName
System.StringtableName
System.Stringschema

DoesColumnExistAsync(IDbConnection, String, String, String, CancellationToken)

View Source
Declaration
public override async Task<bool> DoesColumnExistAsync(IDbConnection db, string columnName, string tableName, string schema = null, CancellationToken token = null)
Returns

Task<System.Boolean>

Parameters
TypeName
IDbConnectiondb
System.StringcolumnName
System.StringtableName
System.Stringschema
CancellationTokentoken

ToCreateTableStatement(Type)

View Source
Declaration
public override string ToCreateTableStatement(Type tableType)
Returns

System.String

Parameters
TypeName
TypetableType

GetSchemas(IDbCommand)

View Source
Declaration
public override List<string> GetSchemas(IDbCommand dbCmd)
Returns

List<System.String>

Parameters
TypeName
IDbCommanddbCmd

GetSchemaTables(IDbCommand)

View Source
Declaration
public override Dictionary<string, List<string>> GetSchemaTables(IDbCommand dbCmd)
Returns

Dictionary<System.String,List<System.String>>

Parameters
TypeName
IDbCommanddbCmd

DoesSchemaExist(IDbCommand, String)

View Source
Declaration
public override bool DoesSchemaExist(IDbCommand dbCmd, string schemaName)
Returns

System.Boolean

Parameters
TypeName
IDbCommanddbCmd
System.StringschemaName

ToCreateSchemaStatement(String)

View Source
Declaration
public override string ToCreateSchemaStatement(string schemaName)
Returns

System.String

Parameters
TypeName
System.StringschemaName

GetColumnDefinition(FieldDefinition)

View Source
Declaration
public override string GetColumnDefinition(FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.FieldDefinitionfieldDef

SqlConflict(String, String)

View Source
Declaration
public override string SqlConflict(string sql, string conflictResolution)
Returns

System.String

Parameters
TypeName
System.Stringsql
System.StringconflictResolution

SqlCurrency(String, String)

View Source
Declaration
public override string SqlCurrency(string fieldOrValue, string currencySymbol)
Returns

System.String

Parameters
TypeName
System.StringfieldOrValue
System.StringcurrencySymbol

SqlCast(Object, String)

View Source
Declaration
public override string SqlCast(object fieldOrValue, string castAs)
Returns

System.String

Parameters
TypeName
System.ObjectfieldOrValue
System.StringcastAs

SqlBool(Boolean)

View Source
Declaration
public override string SqlBool(bool value)
Returns

System.String

Parameters
TypeName
System.Booleanvalue

EnableForeignKeysCheck(IDbCommand)

View Source
Declaration
public override void EnableForeignKeysCheck(IDbCommand cmd)
Parameters
TypeName
IDbCommandcmd

EnableForeignKeysCheckAsync(IDbCommand, CancellationToken)

View Source
Declaration
public override Task EnableForeignKeysCheckAsync(IDbCommand cmd, CancellationToken token = null)
Returns

Task

Parameters
TypeName
IDbCommandcmd
CancellationTokentoken

DisableForeignKeysCheck(IDbCommand)

View Source
Declaration
public override void DisableForeignKeysCheck(IDbCommand cmd)
Parameters
TypeName
IDbCommandcmd

DisableForeignKeysCheckAsync(IDbCommand, CancellationToken)

View Source
Declaration
public override Task DisableForeignKeysCheckAsync(IDbCommand cmd, CancellationToken token = null)
Returns

Task

Parameters
TypeName
IDbCommandcmd
CancellationTokentoken

Unwrap(IDbConnection)

View Source
Declaration
protected DbConnection Unwrap(IDbConnection db)
Returns

DbConnection

Parameters
TypeName
IDbConnectiondb

Unwrap(IDbCommand)

View Source
Declaration
protected DbCommand Unwrap(IDbCommand cmd)
Returns

DbCommand

Parameters
TypeName
IDbCommandcmd

Unwrap(IDataReader)

View Source
Declaration
protected DbDataReader Unwrap(IDataReader reader)
Returns

DbDataReader

Parameters
TypeName
IDataReaderreader

OpenAsync(IDbConnection, CancellationToken)

View Source
Declaration
public override Task OpenAsync(IDbConnection db, CancellationToken token = null)
Returns

Task

Parameters
TypeName
IDbConnectiondb
CancellationTokentoken

ExecuteReaderAsync(IDbCommand, CancellationToken)

View Source
Declaration
public override Task<IDataReader> ExecuteReaderAsync(IDbCommand cmd, CancellationToken token = null)
Returns

Task<IDataReader>

Parameters
TypeName
IDbCommandcmd
CancellationTokentoken

ExecuteNonQueryAsync(IDbCommand, CancellationToken)

View Source
Declaration
public override Task<int> ExecuteNonQueryAsync(IDbCommand cmd, CancellationToken token = null)
Returns

Task<System.Int32>

Parameters
TypeName
IDbCommandcmd
CancellationTokentoken

ExecuteScalarAsync(IDbCommand, CancellationToken)

View Source
Declaration
public override Task<object> ExecuteScalarAsync(IDbCommand cmd, CancellationToken token = null)
Returns

Task<System.Object>

Parameters
TypeName
IDbCommandcmd
CancellationTokentoken

ReadAsync(IDataReader, CancellationToken)

View Source
Declaration
public override Task<bool> ReadAsync(IDataReader reader, CancellationToken token = null)
Returns

Task<System.Boolean>

Parameters
TypeName
IDataReaderreader
CancellationTokentoken

ReaderEach<T>(IDataReader, Func<T>, CancellationToken)

View Source
Declaration
public override async Task<List<T>> ReaderEach<T>(IDataReader reader, Func<T> fn, CancellationToken token = null)
Returns

Task<List<<T>>>

Parameters
TypeName
IDataReaderreader
Func<<T>>fn
CancellationTokentoken
Type Parameters
  • T

ReaderEach<Return>(IDataReader, Action, Return, CancellationToken)

View Source
Declaration
public override async Task<Return> ReaderEach<Return>(IDataReader reader, Action fn, Return source, CancellationToken token = null)
Returns

Task<<Return>>

Parameters
TypeName
IDataReaderreader
Actionfn
<Return>source
CancellationTokentoken
Type Parameters
  • Return

ReaderRead<T>(IDataReader, Func<T>, CancellationToken)

View Source
Declaration
public override async Task<T> ReaderRead<T>(IDataReader reader, Func<T> fn, CancellationToken token = null)
Returns

Task<<T>>

Parameters
TypeName
IDataReaderreader
Func<<T>>fn
CancellationTokentoken
Type Parameters
  • T

Implements